<html><head>

        <link href="<?php echo base_url('assets/css/formkematian.css') ?>" rel="stylesheet" type="text/css">
        <title>Laporan Kematian Penduduk</title>
    </head>
    <body>
        <table width="100%" border="0" align="center">
            <tr>
                <td colspan="10" class="trheader">Laporan  kematian Penduduk <br>
                    Kategori : Per Jenis Kelamin                    </td>
            </tr>
            <tr>
                <td colspan="10" class="cari">&nbsp;</td>
            </tr>
            <form action="<?php echo base_url('kematian/cari_jk'); ?>" method="post" enctype="multipart/form-data">
                <tr>
                    <td colspan="14" bordercolor="#666666" class="cari">Cari Jenis Kelamin  : 
                        <select name="idjenis_kelamin" class="list">
                            <?php
                            if (isset($jenis_kelamin)) {
                                foreach ($jenis_kelamin->result() as $data_jenis_kelamin) {
                                    echo '<option value="' . $data_jenis_kelamin->idjenis_kelamin . '">' . $data_jenis_kelamin->jenis_kelamin . '</option>';
                                }
                            }
                            ?>
                        </select>                
                        <input type="submit" name="cari" id="cari" value="Cari" class="btn btn-large"/></td>
                </tr>
            </form>

            <tr>
                <td colspan="8" bordercolor="#666666" class="tampilcari"><div align="center">Daftar penduduk meninggal dengan jenis kelamin : <?php echo isset($nama_jeniskelamin->jenis_kelamin) ? $nama_jeniskelamin->jenis_kelamin : ''; ?></div></td>
            </tr>
            <tr>
                <td colspan="10" class="jeda">&nbsp;</td>
            </tr>
            <tr>
                <td width="4%"><div align="center"><strong>No.</strong></div></td>
              <td width="9%"><div align="center"><strong>No. Surat</strong></div></td>
              <td width="10%"><div align="center"><strong>NIK</strong></div></td>
              <td width="9%"><div align="center"><strong>Nama</strong></div></td>
              <td width="7%"><div align="center"><strong>Jenis Kelamin</strong></div></td>
              <td width="9%"><div align="center"><strong>No.KK</strong></div></td>
              <td width="8%"><div align="center"><strong>Alamat</strong></div></td>
              <td width="12%"><div align="center"><strong>Tgl. Kematian</strong></div></td>
              <td width="9%"><div align="center"><strong>Sebab</strong></div></td>
              <td width="10%"><div align="center"><strong>Nama Pelapor</strong></div></td>
          </tr>
            <?php
//            echo '<tr>';
//            echo '<td>tampil</td>';
//            echo '</tr>';
            if (isset($kematian)) {
                $no = 1;
                foreach ($kematian->result() as $data_kematian) {
                    echo '<tr>';
                    echo '<td><div align="center">' . $no++ . '</div></td>';
                    echo '<td><div align="center">' . $data_kematian->no_form . '</div></td>';
                    echo '<td>' . $data_kematian->nik_mati . '</td>';
                    echo '<td>' . $data_kematian->nama_mati . '</td>';
                    echo '<td><div align="center">' . $data_kematian->jenis_kelamin . '</div></td>';
                    echo '<td>' . $data_kematian->no_kk . '</td>';
                    echo '<td>' . $data_kematian->dusun . '</td>';
                    echo '<td>' . $this->tanggal->tanggal_indonesia($data_kematian->tgl_mati) . '</td>';
                    echo '<td>' . $data_kematian->sebab . '</td>';
                    echo '<td>' . $data_kematian->nama_pelapor . '</td>';
                    echo '</tr>';
                }
            }
            ?>
        </table>
    </body>
</html>
